home *** CD-ROM | disk | FTP | other *** search
- global gMasterData, gSection, gMeasureQuestions
-
- on goIntro
- go(label("intro"))
- set gSection to #intro
- goNarrator(gMasterData, "17")
- end
-
- on goX
- go(label("1"))
- set gSection to #X
- setUpQuestions()
- end
-
- on setUpQuestions
- set gMeasureQuestions to [#questionNum: 1, #artSprite: 6, #numofquestions: 12, #score: 0]
- end
-
- on questionNext
- if the questionNum of gMeasureQuestions < the numofquestions of gMeasureQuestions then
- set the questionNum of gMeasureQuestions to the questionNum of gMeasureQuestions + 1
- nextQuest()
- if not activationOn(gMasterData) then
- activate(gMasterData)
- end if
- else
- go("score")
- end if
- end
-
- on nextQuest
- go("quest")
- set the member of sprite the artSprite of gMeasureQuestions to member ("quest" && the questionNum of gMeasureQuestions)
- updateStage()
- case the questionNum of gMeasureQuestions of
- 1:
- goNarrator(gMasterData, "17a")
- 2:
- goNarrator(gMasterData, "17b")
- 3:
- goNarrator(gMasterData, "17c")
- 4:
- goNarrator(gMasterData, "17d")
- 5:
- goNarrator(gMasterData, "17e")
- 6:
- goNarrator(gMasterData, "17f")
- 7:
- goNarrator(gMasterData, "17g")
- 8:
- goNarrator(gMasterData, "17h")
- 9:
- goNarrator(gMasterData, "17i")
- 10:
- goNarrator(gMasterData, "17j")
- 11:
- goNarrator(gMasterData, "17k")
- 12:
- goNarrator(gMasterData, "17l")
- end case
- end
-
- on clickOne
- go("1 anim")
- addToScore(1)
- end
-
- on clickTwo
- go("2 anim")
- addToScore(2)
- end
-
- on clickThree
- go("3 anim")
- addToScore(3)
- end
-
- on clickFour
- go("4 anim")
- addToScore(4)
- end
-
- on addToScore num
- set the score of gMeasureQuestions to the score of gMeasureQuestions + num
- put num into line the questionNum of gMeasureQuestions of field "print2 field"
- end
-
- on goTofinalScore
- set gSection to #score
- set theScore to the score of gMeasureQuestions
- case 1 of
- (theScore > 35):
- go("good")
- goNarrator(gMasterData, "18")
- (theScore > 20):
- go("fair")
- goNarrator(gMasterData, "19")
- otherwise:
- go("bad")
- goNarrator(gMasterData, "20")
- end case
- put theScore into field "score field"
- end
-